package com.bawei.module_mine.ui.mine

import com.bawei.module_mine.http.MineApi
import com.bawei.module_mine.http.MineNetModule
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import javax.inject.Inject

/**
 *作者：lxy
 *功能:
 *时间：2025/5/28
 */
class MineRepository @Inject constructor() {

    @Inject
    @MineNetModule.CommonMineApi
    lateinit var mineApi: MineApi

    fun getUserInfo() = flow {
        emit(mineApi.getUserInfo())
    }.flowOn(Dispatchers.IO)
}